package com.ease.dao.impl;

import com.ease.dao.AbstractDataAccessObject;
import com.ease.dao.util.DataAccessObjectUtil;

/**
 * 
 * @author nathanleewei
 * 
 */
public abstract class AbstractDataAccessObjectImpl extends DataAccessObjectUtil implements AbstractDataAccessObject {

	protected int maxRows = MAX_ROWS;

	public static String fullname(String namespace, String statementName) {
		return namespace + DOT + statementName;
	}

	public static String count(String namespace, String statementName) {
		return count(fullname(namespace, statementName));
	}

	public static String count(String fullname) {
		return fullname + COUNT;
	}

	/**
	 * @return the maxRows
	 */
	public int getMaxRows() {
		return maxRows;
	}

	/**
	 * @param maxRows
	 *            the maxRows to set
	 */
	public void setMaxRows(int maxRows) {
		this.maxRows = maxRows;
	}
}
